<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Swiper extends Model
{
    use SoftDeletes;
    // 显示
    const SHOW = 1;
    // 不显示
    const NOT_SHOW = 0;

    // 显示轮播图个数
    const SHOW_COUNT = 4;

    // 轮播图显示状态
    static protected $statusArray = [
        self::SHOW => '显示',
        self::NOT_SHOW  => '不显示'
    ];

	//指定表名
	protected $table='swiper';
    // 开启自动时间戳
    public $timestamps = true;
    // 日期都存储为时间戳
    protected $dateFormat = 'U';

}
